<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
            <li class="active"><a href="{:url('score/list')}">兑换记录</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('score/list')}">
            用户昵称:
            <input type="text" class="form-control" name="nickname" value="{:input('request.nickname/s','')}" placeholder="请输入用户名称">
            用户手机号码:
            <input type="text" class="form-control" name="phone" value="{:input('request.phone/s','')}" placeholder="请输入用户手机号码">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('score/list')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                    <th width="50">ID</th>
                    <th>订单号</th>
                    <th>用户昵称</th>
                    <th>用户手机号码</th>
                    <th>花费积分</th>
                    <th>花费金额</th>
                    <th>商品名称</th>
                    <th>订单状态</th>
                    <th>所属店铺</th>
                    <th>添加时间</th>
				</tr>
			</thead>
			<tbody>
                <foreach name="list" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.ordernum}</td>
                        <td>{$vo.nickname}</td>
                        <td>{$vo.phone}</td>
                        <td>{$vo.score}</td>
                        <td>{$vo.pay_price}</td>
                        <td>{$vo.goodsname}</td>
                        <if condition="$vo['status'] eq 1"><td>未支付</td></if>
                        <if condition="$vo['status'] eq 2"><td>待发货</td></if>
                        <if condition="$vo['status'] eq 3"><td>待收货</td></if>
                        <if condition="$vo['status'] eq 4"><td>已完成</td></if>
                        <if condition="$vo['status'] eq 5"><td>退款中</td></if>
                        <if condition="$vo['status'] eq 6"><td>退款成功</td></if>
                        <td>{$vo.name}</td>
                        <td>{$vo.addtime}</td>
                    </tr>
                </foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>